//
//  ClubCell.m
//  XDLookPic
//
//  Created by xiaorui on 14-4-21.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "ClubCell.h"
#import "XDHeader.h"

@implementation ClubCell
@synthesize  titleLabel = _titleLabel;
@synthesize imageView = _imageView,openButton = _openButton;
@synthesize itemView = _itemView,iconView = _iconView;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
-(void)creatCell{
    _imageView =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, UI_SCREEN_WIDTH, 50)];
    _imageView.backgroundColor =[UIColor clearColor];
    [self.contentView addSubview:_imageView];
    _iconView =[[UIImageView alloc]initWithFrame:CGRectMake(15, 2.5, 40, 45)];
    _iconView.backgroundColor =[UIColor greenColor];
    [self.contentView addSubview:_iconView];
    _titleLabel =[[UILabel alloc]initWithFrame:CGRectMake(62, 0, 120, _imageView.bounds.size.height)];
    _titleLabel.backgroundColor =[UIColor clearColor];
    [self.contentView addSubview:_titleLabel];
    _openButton =[UIButton buttonWithType:UIButtonTypeContactAdd];
    _openButton.frame =CGRectMake(VIEW_POINT_MAX_X(_titleLabel), 0, 35, 35);
    [self.contentView addSubview:_openButton];
    _itemView =[[UIView alloc]initWithFrame:CGRectMake(10, VIEW_POINT_MAX_Y(_imageView), UI_SCREEN_WIDTH-20, 40)];
    _itemView.backgroundColor=[UIColor clearColor];
    _itemView.userInteractionEnabled =YES;
    [self.contentView addSubview:_itemView];

}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
